<div id="top">
	<div class="top_padding">
    	<div class="katana-logo"><a title="Katana - Dashboard" href="/commander/"><img src="images/top_logo.png" border="0" alt="Katana - Dashboard" /></a></div>
        <div class="dock" id="dock">
          <div class="dock-container">
            <?php
			if(count($katana->getActiveCores()) > 0)
			{
				foreach($katana->ActiveCores as $core)
				{
					$modlinks[$core->getId()]['id'] = $core->getId();
					$modlinks[$core->getId()]['title'] = ucfirst($txt->getWord($core->getTitle()));
					
					$class = 'dock-item';
					if($commander->Con == $core->getId())
					{ $class = 'dock-item active'; }
					
					$modlinks['out'] .= '<a title="'.ucfirst($txt->getWord($core->getTitle())).'" class="'.$class.'" href="?con='.$core->getId().'&amp;m='.$_REQUEST['m'].'">';
					$modlinks['out'] .= '<img src="images/components/'.$core->getHandle().'_48.png" alt="'.ucfirst($txt->getWord($core->getTitle())).'" />';
					$modlinks['out'] .= '<span>'.ucfirst($txt->getWord($core->getTitle())).'</span></a> ';
				}
				if($commander->Con == 1)
				{ 
					$modlinks['out'] .= '<a title="'.ucfirst($txt->getWord('help')).'" class="dock-item" href="/commander/components/sitemap/help/index.html" target="_blank">';
					$modlinks['out'] .= '<img src="images/components/help_48.png" alt="'.ucfirst($txt->getWord('help')).'" />';
					$modlinks['out'] .= '<span>'.ucfirst($txt->getWord('help')).'</span></a> ';
				}
				if($commander->Con == 8)
				{ 
					$modlinks['out'] .= '<a title="'.ucfirst($txt->getWord('help')).'" class="dock-item" href="/commander/components/shop/help/index.html" target="_blank">';
					$modlinks['out'] .= '<img src="images/components/help_48.png" alt="'.ucfirst($txt->getWord('help')).'" />';
					$modlinks['out'] .= '<span>'.ucfirst($txt->getWord('help')).'</span></a> ';
				}
			}
            if($modlinks['first'] == '')
            { $modlinks['first']  = '<img width="32" height="" title="" src="../images/system/spacer.gif" alt="" />'; }
            ?>
            <?php echo $modlinks['out']; ?>
          </div> 
        </div>
        <div class="sign-out">
        	<a title="<?php echo ucfirst($txt->getWord('sign-out')); ?>" onclick="$('#sign-out').submit();"><img border="0" src="images/exit.png" /></a>
        	<form id="sign-out" action="/" method="post">
            	<input type="hidden" name="action" value="logout_user" />
            </form>
        </div>
	</div>
</div>
